package com.miyuan.wm.pojo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName OperationRecordEntity
 * @Description 用户操作记录
 */
@TableName("my_operation_record")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class OperationRecordEntity implements Serializable {

    @TableId(type = IdType.AUTO, value = "id")
    private int id; // 数据库Id

    @TableField(value = "user_id")
    private int userId; // 用户Id

    @TableField(value = "user_name")
    private String userName; // 用户名

    @TableField(value = "operation_name")
    private String operationName; // 操作名称

    @TableField(value = "operation_time")
    private Date operationTime; // 操作时间

    @TableField(value = "operation_result")
    private String operationResult; // 操作结果

}
